﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo12//正方形类
{
    class Square: Shape
    {
        private int sideLen;//边长
        public int SideLen
        {
            get { return sideLen;}
            set { sideLen = value; }
        }
        public override void GetArea()
        {
            //base.GetArea();
            Console.WriteLine("该正方形的边长为{0}，面积为：{1}",this.sideLen,this.sideLen*this.sideLen);
        }
    }
}
